package com.three.vip.service.impl;

import com.three.core.entity.UserBalance;
import com.three.core.vo.R;
import com.three.vip.mapper.UserBalanceMapper;
import com.three.vip.service.UserBalanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：JinShiYan
 * @date ：Created in 2025/3/17 20:41
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class UserBalanceServiceImpl implements UserBalanceService {

    @Autowired
    private UserBalanceMapper userBalanceMapper;
    @Override
    public R<UserBalance> selectBalanceByUserId(Integer id) {
        UserBalance userBalanceR = userBalanceMapper.selectBalanceByUserId(id);
        R<UserBalance> r = new R<>(200,"查询成功",userBalanceR);
        return r;
    }
}
